import request from '@/utils/request1'

// 1)	当前位置
export function getPosition(params) {
  return request({
    url: '/voucher/baiduMap/getPosition.do',
    method: 'get',
    params
  })
}

// 2)	所有资产位置
export function getAllAssetPosition(params) {
  return request({
    url: '/voucher/baiduMap/getAllAssetPosition.do',
    method: 'get',
    params
  })
}

// 3)	所有气泡层
export function getAll(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getAll.do',
    method: 'get',
    params
  })
}

// 3)	资产列表
export function getAllRoom(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getAllRoom.do',
    method: 'get',
    // baseURL: 'http://192.168.100.177:8080',
    params
  })
}

// 4)	资产房屋列表
export function getRoomList(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getRoomList.do',
    method: 'get',
    params
  })
}

// 4)	获取点位资产信息
export function getRoomByPoint(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getRoomByPoint.do',
    method: 'get',
    params
  })
}

// 4)	获取点位资产信息
export function getRoomProperty(params) {
  return request({
    url: '/voucher/baiduMap/getRoomProperty.do',
    method: 'get',
    params
  })
}

// 4)	人员
export function getWetchatAllUsers(params) {
  return request({
    url: '/voucher/mobile/asset/getWetchatAllUsers.do',
    method: 'get',
    params
  })
}

// 5)	巡查点 openId datepicker datepicker2 2019-19-19
export function getAllCheckByOpenId(params) {
  return request({
    url: '/voucher/baiduMap/getAllCheckByOpenId.do',
    method: 'get',
    params
  })
}

// 6)	隐患资产详情 limit offset hiddenGuid
export function getAssetByHidden(params) {
  return request({
    url: '/voucher/mobile/asset/getAssetByHidden.do',
    method: 'get',
    params
  })
}

// // 7)	当前位置中心点 limit offset lnt lat distance
// export function getByPoint(params) {
//   return request({
//     url: '/getByPoint.do',
//     method: 'get',
//     params,
//     baseURL: 'http://192.168.100.110:8080/voucher/baiduMap'
//   })
// }

// 8)	通过点lng和lag获取资产guid lng lat
export function getGUIDByPosition(params) {
  return request({
    url: '/voucher/baiduMap/getGUIDByPosition.do',
    method: 'get',
    params
  })
}

// 9 资产类型
export function getHouseAndAssetTypes(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getHouseAndAssetTypes.do',
    method: 'get',
    params
  })
}
// 10 隐患位置 limit offset  lng lat distance
export function getByPoint(params) {
  return request({
    url: '/voucher/baiduMap/getByPoint.do',
    method: 'get',
    params
  })
}

// 11 资产地图查询
export function getAssetByCondition(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getAssetByCondition.do',
    method: 'post',
    data: params
  })
}

// 12 隐患条件查询
export function getQueryAssetByHidden(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/queryAssetByHidden.do',
    method: 'post',
    data: params
  })
}

// 13 列表条件查询
export function getAccessPagingConditions(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/getAccessPagingConditions.do',
    method: 'post',
    data: params
  })
}

// 13 隐患列表
export function getQueryAssetPagingByHidden(params) {
  return request({
    url: '/voucher/baiduMap/kMeans/queryAssetPagingByHidden.do',
    method: 'post',
    data: params
  })
}

// 模糊查询
export function getFuzzyQuery(params) {
  return request({
    url: '/voucher/baiduMap/FuzzyQuery/fuzzyQuery.do',
    method: 'get',
    params
  })
}
